import request from "@/utils/request";
//获取图形验证码的接口请求
export const getpiCode = () => {
  return request.get("/captcha/image");
}
//获取短信验证码的接口请求
export const getcode = (captchaCode, captchaKey, mobile) => {
  return request.post('/captcha/sendSmsCaptcha', {
    form: {
      captchaCode,
      captchaKey,
      mobile
    }
  })
}
//登录接口
export const codelogin = (mobile, smsCode) => {
  return request.post('/passport/login', {
    form: {
      isParty: false,
      partyData: {},
      mobile,
      smsCode
    }
  })

}